package com.yoyo.itravel.service;

import com.yoyo.itravel.bean.FlightOrder;
import com.yoyo.itravel.exceptions.FlightOrderException;

/**
 * @author liuchaojie
 * @version 1.0
 * @Description 订单操作类服务层接口【服务层】
 * @date 2020/6/18 18:33
 */
public interface IFlightOrderService {
    /**
     * 增加机票订单
     * @param flightOrder
     * @return
     * @throws FlightOrderException
     */
    int insert(FlightOrder flightOrder) throws FlightOrderException;

    /**
     * 删除机票订单
     * @param flightOrder
     * @return
     * @throws FlightOrderException
     */
    int delete(FlightOrder flightOrder) throws FlightOrderException;

    /**
     * 根据orderId查询机票订单
     * @param orderId
     * @return
     * @throws FlightOrderException
     */
    FlightOrder selectByFlightOrderId(String orderId) throws FlightOrderException;

    /**
     * 修改机票订单
     * @param flightOrder
     * @return
     * @throws FlightOrderException
     */
    int update(FlightOrder flightOrder) throws FlightOrderException;
}
